package com.example.demo.client.evt.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/9/2  22:04
 */
@ApiModel("判断用户名称是否存在参数")
public class IsUserNameExistEvt implements Serializable {
    private static final long serialVersionUID = -3147338559657154921L;
    @ApiModelProperty(value = "用户ID",notes = "新增为空修改时必填")
    private Long userId;
    @ApiModelProperty(value = "登录用户名",required = true)
    @NotBlank
    private String loginName;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Override
    public String toString() {
        return "IsUserNameExistEvt{" +
            "userId=" + userId +
            ", loginName='" + loginName + '\'' +
            '}';
    }
}
